import SplitExcelInput from '@/components/part/SplitExcelInput';
import { Fields } from '@/components/form/schema/maps';

// 搜索项
const SearchSchema = {
  orderNo: {
    title: tr('订单号'),
  },
  xbomNo: {
    title: tr('XBom编号'),
  },
  basicPno18: {
    title: tr('基础PNO18'),
  },
  specialPno18: {
    title: tr('特改PNO18'),
  },
  requirementDesc: {
    title: tr('需求描述'),
  },
  state: {
    title: tr('状态'),
    componentType: Fields.CodeList,
    props: {
      type: 'XBOM_STATE',
    },
  },
  owner: {
    title: tr('责任人'),
    componentType: 'UserSelector',
  },
  interfacePerson: {
    title: tr('接口人'),
    componentType: 'UserSelector',
  },
};

const XBomSearchSchema = {
  SearchSchema,
  customComponents: [
    {
      name: 'SplitExcelInput',
      component: SplitExcelInput, // 让表格可以编辑
    },
  ],
};

export default XBomSearchSchema;
